package tests;
import static org.junit.Assert.*;

import model.cardData.Card;
import model.cardData.CardSet;
import model.cardData.CardSuit;
import model.cardData.CardValue;
import model.cardData.CardVisibility;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class CardSetTest {

	CardSet cs;
	
	@Before
	public void setUp() throws Exception {
		cs = new CardSet(CardVisibility.NONE);
		
		Card c1 = new Card(CardValue.ACE, CardSuit.SPADES);
		Card c2 = new Card(CardValue.FIVE, CardSuit.DIAMONDS);
		cs.addCard(c1);
		cs.addCard(c2);
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void numCardsTest() {
		try {
			System.out.println(cs.numCards(CardValue.ACE));
			fail("keine Exception geworfen");
		} catch(Exception e) {
			System.err.println(e.getMessage());
		}
	}
	
	@Test
	public void numCards2Test() {
		assertEquals(2, cs.numCards());
	}

}
